package com.newblog2_0.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;


import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:TQ02
 * Data:2023-12-16
 * Time:14:18
 * Text：
 */
@Data
@TableName("articleinfo")
public class ArticleInfo implements Serializable {
    @TableField("aId")
    private int aId;    //文章序号
    private String title;   //标题
    private String content;   //文章
    @JsonFormat(pattern = "yyy-MM-dd HH:mm",timezone="GMT+8")
    private LocalDateTime createtime;   //创建时间
    private LocalDateTime updatetime;   //修改时间
    @TableField("uId")
    private int UId;                    //作者id

    private int rcount;                   //阅读量
    private int state;                  //状态
    private String type;

}
